package com.originskyseed.platform.log.model;

import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.originskyseed.platform.core.mongodb.bean.BaseMongo;

/**
 * （osi_home_page_cache）
 * 
 * @author tang
 */
public class HomePageCache extends BaseMongo {

	/**
	 * 用户id
	 */
	private String userId;

	/**
	 * 缓存内容
	 */
	private String content;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Map<String, Object> toMap() {
		return (Map) JSONObject.parseObject(JSONObject.toJSONString(this, new SerializerFeature[] { SerializerFeature.DisableCircularReferenceDetect, SerializerFeature.WriteMapNullValue }), Map.class);
	}
}